package com.example.testproject;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.widget.SimpleCursorAdapter.ViewBinder;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class Screen4 extends Activity implements View.OnClickListener {
	EditText name1, email1, phone1;
	String name, email, phone;	

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.screen4);
        name1 = (EditText)findViewById(R.id.name);
        email1 = (EditText)findViewById(R.id.email_id);
        phone1  = (EditText)findViewById(R.id.phone_no);
        
        Button login = (Button) findViewById(R.id.book_now);
		
		
		Button puneTab01 = (Button) findViewById(R.id.puneTab01);
		Button puneTab02 = (Button) findViewById(R.id.puneTab02);
		Button puneTab03 = (Button) findViewById(R.id.puneTab03);
		Button puneTab04 = (Button) findViewById(R.id.puneTab04);
		puneTab01.setOnClickListener(this);
		puneTab02.setOnClickListener(this);
		puneTab03.setOnClickListener(this);
		puneTab04.setOnClickListener(this);
		
		login.setOnClickListener(this);
		
		
    }
    	 
		
		
		       
 
                	 public void onClick(View v) {
                	        switch (v.getId()) {
                	        case R.id.book_now:
                	        	name = name1.getText().toString();
                				   email = email1.getText().toString();
                				   phone = phone1.getText().toString();
                				   Intent intent = new Intent(/*FirstActivity.this*/ v.getContext(), Screen6.class);
                				   intent.putExtra("name", name);
                				   intent.putExtra("email", email);
                				   intent.putExtra("phone", phone);
                				   startActivity(intent);
                	            break;
                	                        	        case R.id.puneTab01:
                	        	Intent intent2 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen1.class);
                			    startActivity(intent2);

                	            break;
                	        case R.id.puneTab02:
                	        	Intent intent3 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen8.class);
                			    startActivity(intent3);

                	            break;
                	        case R.id.puneTab03:
                	        	Intent intent4 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen10.class);
                			    startActivity(intent4);

                	            break;
                	        case R.id.puneTab04:
                	        	Intent intent5 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen9.class);
                			    startActivity(intent5);

                	            break;


                	        default:
                	            break;
                	        }
                 }
		
    
   
}

